<template>
  <div class="caseList">
    <div v-for="i in list" :key="i.id">
      <div>
        <h3>{{ i.videoName }}</h3>
        <img :src="i.img" alt="" lazy="true" />
      </div>
      <h2>{{ i.nm }}</h2>
    </div>
  </div>
</template>
<script>
import {movie_Hot_API} from '@/api/movie'
export default {
  name: 'neW',
  data(){
    return{
       list:[], 
    }
  },
    created(){
    this.getmoviehot()
  },
  methods:{
        getmoviehot() {
           movie_Hot_API().then(({ data: res }) => {
        // console.log(res.data.hot)
        this.list = res.data.hot
      })
    },
  }
}
</script>
<style scoped>
.caseList {
  width: 1400px;
  margin: 80px auto auto auto;
  display: flex;
  justify-content: center;
  flex-direction: row;
  flex-flow: wrap;
  position: relative;
}

.caseList > div {
  width: 200px;
  margin-right: 20px;
  margin-bottom: 20px;
}

.caseList > div > div {
  width: 200px;
  height: 280px;
  /*background: #222A3A;*/
  /*overflow: hidden;*/
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  overflow: hidden;
}

.caseList > div > div > img {
  width: 100%;
  display: block;
  margin-top: 25px;
  margin-left: 15px;
  border-radius: 8px;
  transform: scale(1.2);
}

.caseList > div > div > h3 {
  color: #ffffff;
  font-size: 16px;
  padding: 16px;
  position: absolute;
  width: 100%;
  bottom: 0;
  z-index: 1;
  background: rgba(0, 0, 0, 0.56);
  box-sizing: border-box;
  color: #ffffff;
  line-height: 24px;
  opacity: 0;
  letter-spacing: 1px;
  transition: all 0.6s;
}

.caseList > div > div:hover h3 {
  opacity: 1;
}

.caseList > div > h2 {
  margin-top: 20px;
  text-align: center;
  font-size: 24px;
  color: #222a3a;
  font-weight: bold;
}
</style>
